<%@page contentType="text/html; charset=utf-8" import="java.util.*" language="java" errorPage="" %>
<%@ page import="com.hs.pre.model.*" %>
<%
String path = request.getContextPath();
List docList = (List)request.getAttribute("resultDoc");
%>
<html>
  <head>   
    <title>方剂比较</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 	<LINK href="<%=path %>/app/css/search.css" type=text/css rel=stylesheet>
    <SCRIPT type=text/javascript>
         function showBanner(value){
            var divs=document.getElementsByName(value);
            var display=document.getElementById(value).style.display;
			var vardisplay='none';
			if(display=='none'){
			   vardisplay='';
			}else{
			   vardisplay='none';
			}
            for(var i=0;divs.length>i;i++)
              divs[i].style.display=vardisplay;
         }
     </SCRIPT>
  </head>
  
  <body>
  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
    <TD vAlign=top width="1%"><A href="http://www.aoqikeji.net/">
        <IMG height=55 alt=方泉 src="<%=path %>/app/images/logo1.gif" width=150 border=0></A></TD>
    <TD>&nbsp;</TD>
    <TD noWrap>
      <TABLE class=header cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD noWrap bgColor=#e5ecf9><FONT size=+3><B>&nbsp;【方剂比较】</B></FONT></TD>
          <TD noWrap align=right bgColor=#e5ecf9><FONT face=arial,sans-serif 
            size=-1><A href="http://www.aoqikeji.net"> </A></FONT></TD>
          </TR>
        </TBODY>
      </TABLE></TD></TR></TBODY></TABLE>
  <br>
	<div id="schBanner" align="center">
			请选择比较内容：
	      <input id="cb2"  type="checkbox" name="tt" value='yaowzc' onClick="showBanner('yaowzcBanner');"  />药物组成
	      <input id="cb3"  type="checkbox" name="tt" value='zuz'    onClick="showBanner('zuzBanner');"  /> 主治
	      <input id="cb4"  type="checkbox" name="tt" value='gongx'  onClick="showBanner('gongxBanner');" />功效
		  <input id="cb5"  type="checkbox" name="tt" value='chufly' onClick="showBanner('chuflyBanner');"  />来源
	</div>
	<table class="sbasc sbwd">
		<TBODY id="spras">
		  <tr  class="sprs sbr csmf">
            <td><SPAN style="FONT-WEIGHT: bold">名称</SPAN></td>
            <td class="sbarf">
            	<div id="yaowzcBanner" style="display:none"><SPAN style="FONT-WEIGHT: bold">药物组成</SPAN></div>
            </td>
            <td>
            	<div id="gongxBanner" style="display:none"><SPAN  style="FONT-WEIGHT: bold">功效</SPAN></div>
            </td>
            <td>
            	<div id="zuzBanner" style="display:none"><SPAN  style="FONT-WEIGHT: bold">主治</SPAN></div>
            </td>         
            <td>
            	<div id="chuflyBanner" style="display:none"><SPAN style="FONT-WEIGHT: bold">来源</SPAN></div>
            </td>
          </tr>		 
			  <%			  
			     String rowcss = "";
			     String rowId = "";
        		 for(int i = 0;i<docList.size();i++){ 
                       PreEntry entry = (PreEntry)docList.get(i);
                         if(i%2 == 0)
                             rowcss = "cssf GrayRow";
                       	else
                              rowcss = "cssf";                    
      			%>
      			  
			    <TR class="<%=rowcss %>" style="BORDER-RIGHT: #cccccc 1px solid; LINE-HEIGHT: 140%"> 
				   <td><%=entry.getFangm() %></td> 			       
			       <td><div id="yaowzcBanner" style="display:none"><%=entry.getYaowzc()%></div></td>
				   <td><div id="gongxBanner" style="display:none"><%=entry.getGongx() %></div></td>
				   <td><div id="zuzBanner" style="display:none"><%=entry.getZhuz() %></div></td>
				   <td ><div id="chuflyBanner" style="display:none"><%=entry.getChufly() %></div></td>
			    </TR>  
			  <%} %>
		</TBODY> 
	</table>
  </body>
</html>